<template>
	<view class="refund-item">
		<block v-if="list.length>0">
			<view class="title">售后申请</view>
			
			<!-- 评价列表 - 纵向 -->
			<view class="bd" v-for="(item,index) in list" :key="index">
				<view class="base">
					<view class="info">
						<text class="name">申请时间：{{item.add_time}}</text>
					</view>
					<view class="info">
						<text class="name">退款金额：￥{{item.refund_money}}</text>
						<text class="status">{{item.refund_status}}</text>
					</view>
					<view class="info">
						<text class="time">退款编号：{{item.refund_sn}}</text>
					</view>
				</view>
				<view class="refund-content">{{item.content}}</view>
				<view class="refund-album">
					<my-album :urls="item.images" keyName="images_url" rowCount="4" maxCount="4" singleSize="70"></my-album>
				</view>
				
				<view v-if="item.audit_status!=1" class="reason">审核的结果: {{item.audit_content}}</view>
			</view>
		</block>
			
	</view>
</template>
<script>
	export default {
		name: 'refund-item',
		props: {
			topdata:{
				type:[Object,Array],
				default:null
			},
			textdata:{
				type:[Object],
				default:null
			},
			list:{
				type:[Object,Array],
				default:[]
			},
		},
		data() {
			return {
			}
		},
		watch: {
			
		},
		computed: {
			
		},
		mounted(){
			
		},
		methods: {
		}
	};
</script>
<style lang="scss">
	.refund-item{
		align-items: center;
		background: #FFFFFF; 
		margin: 20rpx;
		padding: 0rpx 30rpx;
		border-radius: 20rpx;
		font-size: 28rpx;
	}
	
	.title{
		padding: 20rpx 30rpx;
		color:#303133;
		font-size: 30rpx;
		font-weight: 700;
		margin: 0rpx 20rpx;
	}
	
	.bd {
	    padding: 28rpx 20rpx 28rpx 30rpx;
		margin-buttom: 0rpx;
	}
	
	.title,.bd{
		border-bottom: 1rpx solid #F2F2F2 !important;
	}
	
	.bd .base .info {
	    display: -ms-flexbox;
	    display: flex;
	    -ms-flex-align: center;
	    align-items: center;
		margin-bottom: 10rpx;
	}
	
	.bd .base .info .name {

	}
	
	.bd .base .info .status {
	    margin-left: auto;
	    color: rgba(60,60,90,.4);

	}
	
	.bd .base .info .time {
	    margin-right: auto;
	    color: rgba(60,60,90,.4);
	    font-size: 24rpx;
	}
	
	.bd .refund-album{
		margin-top: 20rpx;
	}
	
	.bd .refund-content {
	    display: -webkit-box;
	    padding: 20rpx 0rpx;
	    overflow: hidden;
	    color: rgba(60,60,90,.8);
	    font-size: 28rpx;
	    text-overflow: ellipsis;
	    word-wrap: break-word;
	    -webkit-line-clamp: 5;
	    -webkit-box-orient: vertical;
	}
	.reason{
		color: $u-error;
		margin-top: 30rpx;
	}
</style>
